<?php
/**
 * Created by PhpStorm.
 * UsersF: Mloong
 * Date: 2019/4/15
 * Time: 10:25
 */

namespace app\common\service;


use app\common\model\UserLoanD;
use app\common\model\UsersD;
use app\common\model\UsersF;
use app\common\model\UserLoanF;
use think\Db;

class registeredPhoneService
{
    private $User;
    private $type;
    private $logo;
    private $phone_arr;
    public function __construct($arr, $type, $logo)
    {
        $this->type = $type;
        $this->logo = $logo;
        $this->phone_arr = $arr;
        if($type == 'f'){
            $this->User = new UsersF();
        }
        if($type == 'd'){
            $this->User = new UsersD();
        }
    }

    /**
     * 提供查询原始数据
     * @return array
     */
    public function getData()
    {
        return [
            'type'=> $this->type,
            'phone_arr' => $this->phone_arr,
            'user' => $this->User,
            'logo' => $this->logo
        ];
    }
}